package cn.wolfcode.trip.base.domain;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class User extends BaseDomain{

    public static final Integer GENDER_NONE = 0; //保密
    public static final Integer GENDER_MALE = 1; //男
    public static final Integer GENDER_FEMALE = 2; //女

    private String email;   //账号

    private String nickName;  //昵称

    private String password;  //密码

    private String place;  //区域

    private String headImgUrl;  //头像

    private Integer gender = GENDER_NONE;  //性别

    private String coverImgUrl;  //背景

    private String sign;  //个性签名

    public String getGenderName(){
        String msg = "保密";
        if(gender == GENDER_MALE){
            msg = "男";
        }else if(gender == GENDER_FEMALE){
            msg = "女";
        }
        return msg;
    }

    /*已发布游记数*/
    private Integer travelCount;
    /*粉丝数*/
    private Integer fansCount;
    /*关注数*/
    private Integer followCount;
    /*收藏数量*/
    private Integer collectCount;
    /*评论数量*/
    private Integer commentCount;
}